<?php
/**
 * Created by PhpStorm.
 * User: 86158
 * Date: 2021/6/14
 * Time: 17:32
 */

namespace App\Models\goods;


use App\Models\Model;
use App\Models\User;

class GoodsOrder extends Model
{
    protected $fillable = [
        'user_id',
        'goods_id',
        'integral',
        'status'
    ];

    public function goods()
    {
        return $this->hasOne(Goods::class,'id','goods_id');
    }

    public function user()
    {
        return $this->hasOne(User::class,'id','user_id');
    }
}